class CreateCompanies < ActiveRecord::Migration
  def self.up
    create_table :companies do |t|
      t.string :name

      t.timestamps
    end
    
    Company.create :name => "Walmart"
    Company.create :name => "Hy-Vee"
    Company.create :name => "Cub Foods"
    Company.create :name => "Albertsons"
    Company.create :name => "H-E-B"
  end

  def self.down
    drop_table :companies
  end
end
